# app/models/sku_images.py
from sqlalchemy import BigInteger, Column, Integer, SmallInteger

from app.models.base import BaseModel


class SkuImagesDo(BaseModel):
    __tablename__ = "sku_images"
    __table_args__ = {"comment": "SKU图片"}

    id = Column(BigInteger, primary_key=True, autoincrement=True, comment='主键ID')
    sku_id = Column(BigInteger, nullable=True, index=True, comment='SKU ID')
    image_id = Column(Integer, comment="分类图片id")
    default_flag = Column(SmallInteger, nullable=True, comment='默认图 0-不是默认图 1-是默认图')